package com.xialing.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xialing.controller.request.AccountLoginRequest;
import com.xialing.controller.request.AccountRegisterRequest;
import com.xialing.model.AccountDO;
import com.xialing.util.JsonData;

/**
 * <p>
 *  服务类
 * </p>
 *
 */
public interface AccountService extends IService<AccountDO> {

    /**
     *  注册
     * @param accountRegisterRequest
     * @return
     */
    JsonData register(AccountRegisterRequest accountRegisterRequest);

    /**
     *  登录
     * @param accountLoginRequest
     * @return
     */
    JsonData login(AccountLoginRequest accountLoginRequest);
}
